//
//  LSZPrayerWitnessListManager.m
//  JKFuYinProject
//
//  Created by 九酷 on 2017/9/18.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZPrayerWitnessListManager.h"

@implementation LSZPrayerWitnessListManager
-(id)initWithDicPrayerWitnessListManager:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        NSMutableArray * arrayMut = [NSMutableArray array];
        self.mutDataArray = [NSMutableArray array];
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSString class]]) {
            return self;
        }
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSNumber class]]) {
            return self;
        }
        if (![dic valueForKey:@"data"]) {
            return self;
        }
        NSArray * arrayData = dic[@"data"];
        for (NSDictionary * dic in arrayData)
        {
            
            NSString * id_id = [NSString stringWithFormat:@"%@",dic[@"id"] ];
            NSString * title = [NSString stringWithFormat:@"%@",dic[@"title"]];
            NSString *  toname = [NSString stringWithFormat:@"%@",dic[@"toname"]];
            NSString *  ctype = [NSString stringWithFormat:@"%@",dic[@"ctype"]];
            NSString *  metype = [NSString stringWithFormat:@"%@",dic[@"metype"]];
            NSString *  linktype = [NSString stringWithFormat:@"%@",dic[@"linktype"]];
            NSString *  linknumber = [NSString stringWithFormat:@"%@",dic[@"linknumber"]];
            NSString *  content = [NSString stringWithFormat:@"%@",dic[@"content"]];
            NSString *  ip = [NSString stringWithFormat:@"%@",dic[@"ip"]];
            NSString *  addtime = [NSString stringWithFormat:@"%@",dic[@"addtime"]];
            NSString *  lastganxiedate = [NSString stringWithFormat:@"%@",dic[@"lastganxiedate"]];
            NSString *  ganxie = [NSString stringWithFormat:@"%@",dic[@"ganxie"]];
            NSString * iparea = [NSString stringWithFormat:@"%@",dic[@"iparea"]];
            NSString *  hits = [NSString stringWithFormat:@"%@",dic[@"hits"]];
            NSString *  datetoday = [NSString stringWithFormat:@"%@",dic[@"datetoday"]];
            NSString *  no = [NSString stringWithFormat:@"%@",dic[@"no"]];

            LSZPrayerWitnessListMg * mg = [[LSZPrayerWitnessListMg alloc]init];
            mg.id_id = id_id;
            mg.title = title;
            mg.toname = toname;
            mg.ctype = ctype;
            mg.metype = metype;
            mg.linktype = linktype;
            mg.linknumber = linknumber;
            mg.content = content;
            mg.ip = ip;
            mg.addtime = addtime;
            mg.lastganxiedate = lastganxiedate;
            mg.ganxie = ganxie;
            mg.iparea = iparea;
            mg.hits = hits;
            mg.datetoday = datetoday;
            mg.no = no;
            [arrayMut addObject:mg];
        }
        self.mutDataArray = arrayMut;
    }
    return self;
}
@end
@implementation LSZPrayerWitnessListMg

@end
